#include "mythread.h"

extern int test;
extern int res;

void MyThread::run()
{

//    QTableWidgetItem *item = new QTableWidgetItem;
//    item = ui->coilTable->item(test,res);
////    qDebug()<<"row :"<<row<<"  column:"<<column;
//    if(item->text() == "ON")
//    {
//         ui->coilTable->setItem(test,res,new QTableWidgetItem(QString("OFF")));
//         settings->setValue("Section" + QString::number(res) + "/coil",0);
//         ui->coilTable->item(1,res)->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
//    }
//    else if (item->text() == "OFF")
//    {
//         ui->coilTable->setItem(test,res,new QTableWidgetItem(QString("ON")));
//         settings->setValue("Section" + QString::number(res) + "/coil",1);
//         ui->coilTable->item(1,res)->setTextAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
//    }

    emit isDone();
}

